package appapi.entity.mqtt;

import java.time.LocalDateTime;
import java.util.Date;

import appapi.common.PageReq;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Terminal)表实体类
 *
 * @author makejava
 * @since 2023-07-04 10:52:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value = "硬件消息接收表")
@TableName(value = "terminal")
public class Terminal {
    @TableId(value = "id", type = IdType.UUID)
    private String termId;
    //终端编号
    @TableField("term_no")
    private String termNo;
    //终端标头
    @TableField("term_topic")
    private String termTopic;
    //标头对应数据
    @TableField("term_data")
    private String termData;
    //创建人
    @TableField("create_oper")
    private String createOper;
    //更新人
    @TableField("update_oper")
    private String updateOper;
    //创建时间
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;
    //更新时间
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private LocalDateTime updateTime;
}

